package com.hunttown.mes.rpc.domain;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * created by wangjunfu on 2022-03-05 09:16:15
 */
public class TransportPurchaseOutDTO implements Serializable {
    private Integer id;
    private Integer entId;
    private Integer parentId;
    private Integer tableId;
    private Integer recordId;
    private Integer purchaseType;
    private Integer outType;
    private String outName;
    private Integer proId;
    private String outNo;
    private Integer receiver;
    private Date receiveDate;
    private Integer repairOrderId;
    private Integer carId;
    private Integer driverId;
    private Integer status;
    private Integer operator;
    private Date operateDate;
    private Integer reviewer;
    private Date reviewDate;
    private Integer reviewStatus;
    private String remark;
    private Integer applyId;
    private Integer relationId;
    private Integer adminId;
    private Date createTime;
    private Integer stopFlag;
    private Integer deleteFlag;

    private String receiverCn;
    private String receiveDateSr;
    private String operatorCn;
    private String operateDateSr;
    private String outTypeName;
    private String orderNo; //生产订单号
    private String adminName;
    private String createTimeSr;
    private Integer canExec;

    private List<TransportPurchaseDetailDTO> purchaseDetailList; //明细

    //以下内容由Alt+Ins快捷生成

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEntId() {
        return entId;
    }

    public void setEntId(Integer entId) {
        this.entId = entId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getTableId() {
        return tableId;
    }

    public void setTableId(Integer tableId) {
        this.tableId = tableId;
    }

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public Integer getPurchaseType() {
        return purchaseType;
    }

    public void setPurchaseType(Integer purchaseType) {
        this.purchaseType = purchaseType;
    }

    public Integer getOutType() {
        return outType;
    }

    public void setOutType(Integer outType) {
        this.outType = outType;
    }

    public String getOutName() {
        return outName;
    }

    public void setOutName(String outName) {
        this.outName = outName;
    }

    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public String getOutNo() {
        return outNo;
    }

    public void setOutNo(String outNo) {
        this.outNo = outNo;
    }

    public Integer getReceiver() {
        return receiver;
    }

    public void setReceiver(Integer receiver) {
        this.receiver = receiver;
    }

    public Date getReceiveDate() {
        return receiveDate;
    }

    public void setReceiveDate(Date receiveDate) {
        this.receiveDate = receiveDate;
    }

    public Integer getRepairOrderId() {
        return repairOrderId;
    }

    public void setRepairOrderId(Integer repairOrderId) {
        this.repairOrderId = repairOrderId;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public Integer getDriverId() {
        return driverId;
    }

    public void setDriverId(Integer driverId) {
        this.driverId = driverId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getOperator() {
        return operator;
    }

    public void setOperator(Integer operator) {
        this.operator = operator;
    }

    public Date getOperateDate() {
        return operateDate;
    }

    public void setOperateDate(Date operateDate) {
        this.operateDate = operateDate;
    }

    public Integer getReviewer() {
        return reviewer;
    }

    public void setReviewer(Integer reviewer) {
        this.reviewer = reviewer;
    }

    public Date getReviewDate() {
        return reviewDate;
    }

    public void setReviewDate(Date reviewDate) {
        this.reviewDate = reviewDate;
    }

    public Integer getReviewStatus() {
        return reviewStatus;
    }

    public void setReviewStatus(Integer reviewStatus) {
        this.reviewStatus = reviewStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getApplyId() {
        return applyId;
    }

    public void setApplyId(Integer applyId) {
        this.applyId = applyId;
    }

    public Integer getRelationId() {
        return relationId;
    }

    public void setRelationId(Integer relationId) {
        this.relationId = relationId;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(Integer stopFlag) {
        this.stopFlag = stopFlag;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getReceiverCn() {
        return receiverCn;
    }

    public void setReceiverCn(String receiverCn) {
        this.receiverCn = receiverCn;
    }

    public String getReceiveDateSr() {
        if (receiveDateSr == null || receiveDateSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

            if (receiveDate == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(receiveDate.getTime()));
            }
        } else {
            return receiveDateSr;
        }
    }

    public void setReceiveDateSr(String receiveDateSr) {
        this.receiveDateSr = receiveDateSr;
    }

    public String getOperatorCn() {
        return operatorCn;
    }

    public void setOperatorCn(String operatorCn) {
        this.operatorCn = operatorCn;
    }

    public String getOperateDateSr() {
        if (operateDateSr == null || operateDateSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

            if (operateDate == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(operateDate.getTime()));
            }
        } else {
            return operateDateSr;
        }
    }

    public void setOperateDateSr(String operateDateSr) {
        this.operateDateSr = operateDateSr;
    }

    public String getOutTypeName() {
        return outTypeName;
    }

    public void setOutTypeName(String outTypeName) {
        this.outTypeName = outTypeName;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getCreateTimeSr() {
        if (createTimeSr == null || createTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            if (createTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(createTime.getTime()));
            }
        } else {
            return createTimeSr;
        }
    }

    public void setCreateTimeSr(String createTimeSr) {
        this.createTimeSr = createTimeSr;
    }

    public Integer getCanExec() {
        return canExec;
    }

    public void setCanExec(Integer canExec) {
        this.canExec = canExec;
    }

    public List<TransportPurchaseDetailDTO> getPurchaseDetailList() {
        return purchaseDetailList;
    }

    public void setPurchaseDetailList(List<TransportPurchaseDetailDTO> purchaseDetailList) {
        this.purchaseDetailList = purchaseDetailList;
    }
}